package com.tian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@TableName("nav")
public class Nav {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer parent_id;
    private String path;
    private Integer level;
    @TableField(exist = false)
    private List<Nav> children; //不是 表格固有属性
}
